﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="CityList.aspx.cs" Inherits="web.admin.CityList" 
    Title="地址-城市列表" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Current_Item" id="TD1">城市列表</td>
                                <td class="Default_Item" id="TD2"><a href="DistrictAdd.aspx?parentId=<%=parentId%>">添加城市</a></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
	        <tr>
	            <td>
                   <asp:GridView ID="cityList" runat="server" AutoGenerateColumns="False"  
                        OnPageIndexChanging="pageIndexChanging" AllowPaging="True" PageSize="20" DataKeyNames="id" SkinID="orange">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label1" Text="名称" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                <asp:Label ID="TypeName" Text='<%# Eval("Name") %>' runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="50%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            <asp:HyperLinkField Text="修改" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/admin/DistrictEdit.aspx?id={0}" />      
                            <asp:HyperLinkField Text="删除" DataNavigateUrlFields="Id,ParentId" DataNavigateUrlFormatString="~/admin/DistrictDel.aspx?id={0}&parentId={1}"/>
                  
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	    </tbody>
    </table>	  
</asp:Content>	  

